// 拆出来 是为了后期维护特定的路由规则方便
import Layout from '@/layout'
// 权限管理
export default {
  path: '/Manage',
  component: Layout,
  redirect: '/Manage/UserManage',
  alwaysShow: true, // will always show the root menu 将始终显示根菜单
  name: 'Manage',
  meta: {
    title: 'Manage',
    icon: 'el-icon-s-custom',
    // noCache: true,
    affix: false
    // roles: ['admin', 'editor'] // you can set roles in root nav
  },
  children: [
    {
      path: 'UserManage',
      component: () => import('@/views/Manage/userManage.vue'),
      name: 'UserManage',
      meta: {
        icon: 'el-icon-link',
        title: 'UserManage',
        // noCache: true,
        affix: false
        // roles: ['admin'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'MenuManage',
      component: () => import('@/views/Manage/menuManage.vue'),
      name: 'MenuManage',
      meta: {
        icon: 'el-icon-link',
        title: 'MenuManage',
        // noCache: true,
        affix: false
        // roles: ['admin']
      }
    },
    {
      path: 'RoleManage',
      component: () => import('@/views/Manage/roleManage.vue'),
      name: 'RoleManage',
      meta: {
        icon: 'el-icon-link',
        title: 'RoleManage',
        // noCache: true,
        affix: false
        // if do not set roles, means: this page does not require permission
      }
    }
  ]
}
